Skip to content

[sync] origin/develop <= upstream/develop (a30e4dd9cae8)#5

Closed
svelderrainruiz wants to merge 1 commit into
developfrom
sync/origin-develop-a30e4dd9cae8
Closed

[sync] origin/develop <= upstream/develop (a30e4dd9cae8)#5
svelderrainruiz wants to merge 1 commit into
developfrom
sync/origin-develop-a30e4dd9cae8

Conversation

@svelderrainruiz

Copy link
Copy Markdown

Summary

  • Sync origin/develop to upstream/develop at a30e4dd9cae8.

Testing

  • node tools/npm/run-script.mjs priority:develop:sync -- --fork-remote origin

…munity-CI-CD#985)

* LabVIEW-Community-CI-CD#978 Skip Copilot gate on throughput fork repos

* LabVIEW-Community-CI-CD#978 Fix fork standing-priority workflow context

* LabVIEW-Community-CI-CD#978 Fix Copilot gate signal preflight

---------

Co-authored-by: GitHub Copilot <copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings March 10, 2026 02:47

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Syncs origin/develop with upstream/develop by bringing in upstream updates to priority tooling and workflow contracts, including fork-aware gating behavior.

Changes:

  • Add canonical-repository detection to copilot-review-gate and skip the gate for non-canonical (fork) repos.
  • Prefer reading the Copilot review signal artifact earlier to support signal-driven preflight.
  • Add tests and workflow contract checks for standing-priority snapshot upstream resolution and fork-skipping behavior.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
tools/priority/copilot-review-gate.mjs Introduces canonical repo checks, updates gate applicability/skipping logic, and adjusts signal preflight handling.
tools/priority/tests/copilot-review-gate.test.mjs Adds coverage for throughput-fork skipping and signal-first behavior.
tools/priority/tests/standing-priority-workflow-contract.test.mjs New contract tests ensuring workflows set the canonical upstream slug for snapshot sync.
.github/workflows/validate.yml Sets AGENT_PRIORITY_UPSTREAM_REPOSITORY for the standing-priority snapshot step.
.github/workflows/issue-snapshot.yml Sets AGENT_PRIORITY_UPSTREAM_REPOSITORY for issue-triggered snapshot sync.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +199 to +202
function isCanonicalRepository(repo) {
const normalized = normalizeText(repo)?.toLowerCase();
return normalized === CANONICAL_REPOSITORY.toLowerCase();
}

Copilot AI Mar 10, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

isCanonicalRepository() treats a missing/blank repository as non-canonical, which then causes evaluateGateOutcome() to skip the gate with reason throughput-fork-skip. Because the Copilot review signal schema allows repository: null, this can make the gate fail open (skipped) for gated base refs when the repository value is unavailable/corrupt. Consider distinguishing “unknown repository” from “fork repository” (e.g., fail with gateState='error' / a dedicated reason when repository is null) so the queue gate doesn’t get bypassed by missing metadata.

Copilot uses AI. Check for mistakes.
Comment on lines +966 to +968
const signalPathExists = options.signalPath && existsSync(path.resolve(process.cwd(), options.signalPath));
const signalReport = signalPathExists ? readSignalFn(options.signalPath) : null;
const preflightPullRequest = buildPullRequest(options, signalReport);

Copilot AI Mar 10, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

runCopilotReviewGate() now reads/parses the signal file before deciding shouldSkipWithoutLookup. This means a malformed/partially-written signal JSON can fail the entire gate run even when it would otherwise be skipped (draft PR, non-gated base ref, merge_group, etc.). To keep the skip path resilient, consider only reading the signal early when it’s actually needed for preflight (e.g., when --repo/PR metadata is missing), or catch JSON parse errors and treat the signal as unavailable when the run is going to be skipped.

Copilot uses AI. Check for mistakes.
@svelderrainruiz

Copy link
Copy Markdown
Author

Superseded by active origin fork PR #3 and older than current upstream develop. Protected-develop sync remains tracked under upstream issue LabVIEW-Community-CI-CD#986, so this stale sync PR should not stay open as a second origin lane.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants